package com.hskn.hss.module.tlcartype.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.tlcartype.entity.TlCarType;
import com.hskn.hss.module.tlfacilitietype.entity.TlFacilitiesType;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-17
 */
public interface ITlCarTypeService extends IService<TlCarType> {

    AjaxResult insert(TlCarType tlCarType) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;
    AjaxResult deletebatchbyid(TlCarType tlCarType) throws HssException;
    AjaxResult deletebyid(JSONObject params) throws HssException;

    JSONObject getList(BaseEntity entity, JSONObject params) throws HssException;

    TlCarType getDetail(JSONObject params) throws HssException;

    List getSelectList(JSONObject params) throws HssException;

    TlCarType getFromRedis(String carTypeId);

    Map<String, TlCarType> getCarTypeMap(QueryWrapper<TlCarType> carTypeQueryWrapper);
}
